<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Alumnos</title>
    </h:head>
    <h:body>
        <h1>Alumnos</h1>
        <h:form>
            <h:commandLink action="/index" value="Inicio"/>
            <h:dataTable value="#{alumnoController.alumnos}" var="alumno">
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Matricula"/>
                    </f:facet>
                    <h:commandLink action="#{alumnoController.edita}" value="#{alumno.matricula}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Nombre"/>
                    </f:facet>
                    <h:outputText value="#{alumno.nombre}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Apellido"/>
                    </f:facet>
                    <h:outputText value="#{alumno.apellido}"/>
                </h:column>
                <h:column>
                    <f:facet name="header">
                        <h:outputText value="Correo"/>
                    </f:facet>
                    <h:outputText value="#{alumno.correo}"/>
                </h:column>
            </h:dataTable>
        </h:form>

    </h:body>
</html>

